package com.gjh.concurrency.filesearch;

import java.io.File;
import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/21 10:08
 */
public class ParallelGroupFileSearch {
    public static void searchFiles(File file, String fileName, Result parallelResult) {
        ConcurrentLinkedQueue<File> directories = new ConcurrentLinkedQueue<>();
        File[] contents = file.listFiles();
        for (File content : contents) {
            if (content.isDirectory()) {
                directories.add(content);
            }
        }
    }
}
